home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xmu / Drawing.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  3KB  |  162 lines

  1. /* $Xorg: Drawing.h,v 1.5 2001/02/09 02:03:52 xorgcvs Exp $ */
  2.  
  3. /*
  4.  
  5. Copyright 1988, 1998  The Open Group
  6.  
  7. Permission to use, copy, modify, distribute, and sell this software and its
  8. documentation for any purpose is hereby granted without fee, provided that
  9. the above copyright notice appear in all copies and that both that
  10. copyright notice and this permission notice appear in supporting
  11. documentation.
  12.  
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15.  
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  19. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22.  
  23. Except as contained in this notice, the name of The Open Group shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from The Open Group.
  26.  
  27. */
  28. /* $XFree86: xc/lib/Xmu/Drawing.h,v 1.6 2001/12/14 19:55:42 dawes Exp $ */
  29.  
  30. /*
  31.  * The interfaces described by this header file are for miscellaneous utilities
  32.  * and are not part of the Xlib standard.
  33.  */
  34.  
  35. #ifndef _XMU_DRAWING_H_
  36. #define _XMU_DRAWING_H_
  37.  
  38. #include <X11/Xlib.h>
  39. #include <X11/Xfuncproto.h>
  40.  
  41. #include <stdio.h>
  42. #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
  43. typedef unsigned long Pixel;
  44. #endif
  45.  
  46. _XFUNCPROTOBEGIN
  47.  
  48. void XmuDrawRoundedRectangle
  49. (
  50.  Display        *dpy,
  51.  Drawable         draw,
  52.  GC             gc,
  53.  int            x,
  54.  int            y,
  55.  int            w,
  56.  int            h,
  57.  int            ew,
  58.  int            eh
  59.  );
  60.  
  61. void XmuFillRoundedRectangle
  62. (
  63.  Display        *dpy,
  64.  Drawable         draw,
  65.  GC             gc,
  66.  int            x,
  67.  int            y,
  68.  int            w,
  69.  int            h,
  70.  int            ew,
  71.  int            eh
  72.  );
  73.  
  74. void XmuDrawLogo
  75. (
  76.  Display        *dpy,
  77.  Drawable         drawable,
  78.  GC            gcFore,
  79.  GC            gcBack,
  80.  int            x,
  81.  int            y,
  82.  unsigned int        width,
  83.  unsigned int        height
  84.  );
  85.  
  86. Pixmap XmuCreatePixmapFromBitmap
  87. (
  88.  Display        *dpy,
  89.  Drawable         d,
  90.  Pixmap         bitmap,
  91.  unsigned int        width,
  92.  unsigned int        height,
  93.  unsigned int        depth,
  94.  unsigned long        fore,
  95.  unsigned long        back
  96. );
  97.  
  98. Pixmap XmuCreateStippledPixmap
  99. (
  100.  Screen            *screen,
  101.  Pixel            fore,
  102.  Pixel            back,
  103.  unsigned int        depth
  104.  );
  105.  
  106. void XmuReleaseStippledPixmap
  107. (
  108.  Screen            *screen,
  109.  Pixmap         pixmap
  110.  );
  111.  
  112. Pixmap XmuLocateBitmapFile
  113. (
  114.  Screen            *screen,
  115.  _Xconst char        *name,
  116.  char            *srcname_return,
  117.  int             srcnamelen,
  118.  int            *width_return,
  119.  int            *height_return,
  120.  int            *xhot_return,
  121.  int            *yhot_return
  122.  );
  123.  
  124. Pixmap XmuLocatePixmapFile
  125. (
  126.  Screen            *screen,
  127.  _Xconst char        *name,
  128.  unsigned long        fore,
  129.  unsigned long        back,
  130.  unsigned int        depth,
  131.  char            *srcname_return,
  132.  int             srcnamelen,
  133.  int            *width_return,
  134.  int            *height_return,
  135.  int            *xhot_return,
  136.  int            *yhot_return
  137.  );
  138.  
  139. int XmuReadBitmapData
  140. (
  141.  FILE            *fstream,
  142.  unsigned int        *width_return,
  143.  unsigned int        *height_return,
  144.  unsigned char        **datap_return,
  145.  int            *xhot_return,
  146.  int            *yhot_return
  147. );
  148.  
  149. int XmuReadBitmapDataFromFile
  150. (
  151.  _Xconst char        *filename,
  152.  unsigned int        *width_return,
  153.  unsigned int        *height_return,
  154.  unsigned char        **datap_return,
  155.  int            *xhot_return,
  156.  int            *yhot_return
  157.  );
  158.  
  159. _XFUNCPROTOEND
  160.  
  161. #endif /* _XMU_DRAWING_H_ */
  162.